package com.zdx.yswl.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;

import com.umeng.analytics.MobclickAgent;
import com.zdx.yswl.App;
import com.zdx.yswl.R;
import com.zdx.yswl.ui.base.BaseActivity;

/**
 * 我的摄像头界面
 * 
 * @author kangpeng
 *
 */
public class CamActivity extends BaseActivity
{

	protected static final String TAG = CamActivity.class.getSimpleName();

	private static final int REQUEST = 1001000;

	private Button on;
	private Button off;
	private ImageView img;

	@Override
	protected void initSettings()
	{

	}

	@Override
	protected void initUi()
	{

	}

	@Override
	protected void saveSettings()
	{

	}

	@Override
	protected void freeMe()
	{

	}

	@Override
	public void onCreate(Bundle savedInstanceState)
    {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_cam);
		setHeader("摄像头");
		initView();
	}

	
	/**友盟session的统计*/
	protected void onResume()
    {
		super.onResume();
		MobclickAgent.onResume(this);
	}

	/**友盟session的统计*/
	protected void onPause()
    {
		super.onPause();
		MobclickAgent.onPause(this);
	}
	
	private void initView()
    {
		img = (ImageView) findViewById(R.id.image_cam);
		on = (Button) findViewById(R.id.online_cam);
		off = (Button) findViewById(R.id.offline_cam);
		
	}

	@Override
	public void onNotify(int what, int arg1, int arg2, Object obj)
	{

	}

	@Override
	public void onHandler(int what, int arg1, int arg2, Object obj)
	{

	}
}
